import React from 'react';

import { renderRoutes, RouteConfig } from 'react-router-config';

export default ({ route: { routes } }: RouteConfig) => (
  renderRoutes(routes, { extraProps: { routes } })
);
